<?php
// +----------------------------------------------------------------------
// |用户操作日志model
// +----------------------------------------------------------------------
namespace app\common\Model;

use think\Model;

class UserLogModel extends Model{

    protected $name = 'user_log';
        // 表主键
        protected $pk = 'id';
        // 设置字段信息
        protected $schema = [
            'id'          => 'int',
            'user_id'     => 'int',
            'ip'          =>'string',
            'log_time'    => 'int',
            'log_content' =>'string',
        ];  

  
        // 设置自动时间戳
        protected $autoWriteTimestamp = true;
        protected $createTime = 'log_time';
        protected $updateTime = false;     
         
}